<template>
	<view class="content">
		<u-navbar title="会员积分" height="88rpx" :placeholder='true' leftIconColor="#fff"
			titleStyle='color:#fff;font-size:32rpx' left-icon-size="32rpx" bg-color="#FF594D" :autoBack="true">
		</u-navbar>
		<view class="filtrate">
			<search-button-input></search-button-input>
			<view class="check_all">
				<u-checkbox-group activeColor="#FF594D" placement="column" @change="checkboxChange">
					<view class="all">
						<u-checkbox size="30rpx" shape='circle' name="name"></u-checkbox>
						<view class="right">
							全选
						</view>
					</view>
				</u-checkbox-group>
				<view class="condition_list">
					<view class="condition_item active">
						全部
					</view>
					<view class="condition_item">
						一团
					</view>
					<view class="condition_item">
						二团
					</view>
				</view>
			</view>
		</view>
		<!-- <scroll-view scroll-y="true">
			<view class="clientele">
				<u-checkbox-group activeColor="#FF594D" placement="column" @change="checkboxChange">
					<view class="clientele_item" @click="navigateTo('/pages_spell/pages/member-detail/member-detail')">
						<view class="item_left">
							<u-checkbox size="30rpx" shape='circle' name="name"></u-checkbox>
							<view class="client_info">
								李 &nbsp;177**********
							</view>
						</view>
						<view class="item_right">
							<image src="/static/images/factionalism/编辑@2x.png" class="edit" mode=""></image>
							<view class="arrow">
								<image src="/static/images/mine/图标@2x.png" mode="" calss="arrow"></image>
							</view>
						</view>
					</view>
					<view class="clientele_item">
						<view class="item_left">
							<u-checkbox size="30rpx" shape='circle' name="name"></u-checkbox>
							<view class="client_info">
								李 &nbsp;177**********
							</view>
						</view>
						<view class="item_right">
							<image src="/static/images/factionalism/编辑@2x.png" class="edit" mode=""></image>
							<view class="arrow">
								<image src="/static/images/mine/图标@2x.png" mode="" calss="arrow"></image>
							</view>
						</view>
					</view>
					<view class="clientele_item">
						<view class="item_left">
							<u-checkbox size="30rpx" shape='circle' name="name"></u-checkbox>
							<view class="client_info">
								李 &nbsp;177**********
							</view>
						</view>
						<view class="item_right">
							<image src="/static/images/factionalism/编辑@2x.png" class="edit" mode=""></image>
							<view class="arrow">
								<image src="/static/images/mine/图标@2x.png" mode="" calss="arrow"></image>
							</view>
						</view>
					</view>
				</u-checkbox-group>
			</view>
		</scroll-view>

		<view class="bottom">
			<view class="left" @click="delModel_show = true">
				发送积分
			</view>
			<u-line direction='col' color="#fff"></u-line>
			<view class="right" @click="navigateTo('/pages_spell/pages/integral-record/integral-record')">
				积分记录
			</view>
		</view>
		<u-popup :show="delModel_show" round="10" mode="center">
			<view class="delModel">
				<view class="delText">
					请输入积分
				</view>
				<view class="money">
					<view class="client_num">
						所选客户数量：72
					</view>
					<view class="adjustment_num">
						<button>-</button>
						<input :value="1" type="number" />
						<button>+</button>
					</view>
				</view>
				<u-line></u-line>
				<view class="operation">
					<view @click="delModel_show = false" class="btn operation_left">
						取消
					</view>
					<u-line direction='col'></u-line>
					<view @click="delModel_show = false" class="btn operation_right">
						确定
					</view>
				</view>
			</view>
		</u-popup> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titleStyle: {
					color: '#fff',
				},
				delModel_show: false,
				inpCustomStyle: {
					border: 0,
					'border-radius': '10rpx',
					'background-color': '#f3f3f3',
					'box-sizing': 'border-box',
					padding: '20rpx 30rpx',
					color: "#D4D4D4"
				},

			}
		},
		methods: {
			checkboxChange(n) {
				console.log(n);
			},
			navigateTo(url) {
				uni.navigateTo({
					url
				})
			},
			groupChange(n) {
				console.log('groupChange', n);
			},
			radioChange(n) {
				console.log('radioChange', n);
			}
		}
	}
</script>

<style lang="scss">
	.content {
		background-color: #f3f3f3;
		min-height: 100vh;

		.u-safe-area-inset-bottom {
			padding-bottom: 0;
		}

		.filtrate {
			background-color: #fff;

			.check_all {
				padding: 0 20rpx 18rpx;
				font-size: 20rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #777777;
				display: flex;
				align-items: center;
				// justify-content: space-between;

				.all {
					display: flex;
					align-items: center;

					.right {
						padding-left: 10rpx;
						padding-right: 30rpx;
					}
				}

				.condition_list {
					text-align: center;
					display: flex;
					align-items: center;

					.condition_item {
						background-color: #F3F3F3;
						width: 124rpx;
						height: 56rpx;
						border-radius: 99rpx;
						line-height: 56rpx;
						margin-right: 20rpx;

						&.active {
							background-color: #FF594D;
							color: #fff;
						}
					}
				}
			}
		}


		.clientele {
			padding: 20rpx 20rpx 0;
			padding-bottom: 200rpx;

			.clientele_item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 56rpx;
				margin-bottom: 20rpx;

				.item_left {
					display: flex;
					align-items: center;

					.client_info {
						margin-left: 10rpx;
						font-size: 26rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						color: #777777;
					}
				}

				.item_right {
					display: flex;

					.edit {
						width: 32rpx;
						height: 32rpx;
						margin-right: 22rpx;
					}

					.arrow {
						width: 40rpx;
						height: 100%;
						display: flex;
						align-items: center;
						justify-content: center;

						image {
							width: 17rpx;
							height: 32rpx;
						}
					}
				}
			}
		}

		.bottom {
			width: 752rpx;
			height: 120rpx;
			background-color: #FFFFFF;
			position: fixed;
			left: 0;
			bottom: 0;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.left,
			.right {
				flex: 1;
				height: 120rpx;
				background: #FF594D;
				text-align: center;
				line-height: 120rpx;
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
			}

			.left {}

			.right {}
		}

		.delModel {
			width: 690rpx;
			// height: 387rpx;
			box-sizing: border-box;
			// // #ifdef MP
			// height: 334rpx;
			// z-index: 100;
			// position: relative;
			// // #endif
			// padding: 24rpx 20rpx;

			.delTitle {
				font-size: 26rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #333332;
				display: flex;
				justify-content: space-between;


				image {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.delText {
				// height: 250rpx;
				text-align: center;
				padding: 30rpx 40rpx;
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #777777;
				color: #333332;
			}

			.adjustment_num {
				display: flex;
				align-items: center;
				width: 216rpx;

				button {
					background-color: transparent;
					padding: 0;
					border: 0;
					color: #777777;
					font-size: 44rpx;

					&::after {
						border: 0;
					}
				}

				input {
					background-color: #FF594D;
					border-radius: 55rpx;
					width: 116rpx;
					height: 51rpx;
					color: #fff;
					text-align: center;
					padding: 0;
					margin: 0 10rpx;
				}
			}

			.money {
				padding: 0 120rpx 20rpx;

				.client_num {
					font-size: 26rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #777777;
					text-align: center;
					padding-bottom: 20rpx;
				}
			}

			.adjustment_num {
				display: flex;
				align-items: center;
				width: 216rpx;
				justify-content: center;
				width: 100%;
				padding: 0 100rpx;
				box-sizing: border-box;

				button {
					background-color: transparent;
					padding: 0;
					border: 0;
					color: #777777;
					font-size: 44rpx;

					&::after {
						border: 0;
					}
				}

				input {
					background-color: #FF594D;
					border-radius: 55rpx;
					width: 116rpx;
					height: 51rpx;
					color: #fff;
					text-align: center;
					padding: 0;
					margin: 0 10rpx;
				}
			}

			.operation {
				display: flex;
				justify-content: center;
				height: 120rpx;


				.btn {
					width: 345rpx;
					height: 100%;
					line-height: 56rpx;
					font-size: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #FF594D;
					text-align: center;
					line-height: 110rpx;
					box-sizing: border-box;
					border-radius: 10rpx 10rpx 10rpx 10rpx;
				}

				.operation_left {
					color: #777777;
				}
			}
		}

	}
</style>